local quick = {}

function quick:keydown(key,fn)
    TheInput:AddKeyDownHandler(key or KEY_H, function() 
        if TheFrontEnd:GetActiveScreen() and TheFrontEnd:GetActiveScreen().name == 'HUD' then 
            fn()
        end
    end)
end

function quick:declare(...)
    local s = ''
    for i = 1, select('#', ...) do s = s .. tostring(select(i, ...)) .. ' ' end
    TheNet:Announce(s)
end
function quick:fnum(...)
    local res = {}
    for i = 1, select('#', ...) do res[i] = string.format('%.2f', select(i, ...)) end
    return unpack(res)
end

return quick